﻿/// <summary>
/// 显示可包含文本、按钮和符号（通知并指示用户）的消息框。
/// </summary>
/// <remarks></remarks>
using System.Windows.Forms;

namespace Marmat.Forms
{
    public class MessageBox
    {

        /// <summary>
        /// 显示具有指定文本的消息框。
        /// </summary>
        /// <param name="text">要在消息框中显示的文本。</param>
        /// <returns>System.Windows.Forms.DialogResult 值之一。</returns>
        /// <remarks></remarks>
        public static DialogResult Show(string text)
        {
            return DevExpress.XtraEditors.XtraMessageBox.Show(text);
        }

        /// <summary>
        /// 显示具有指定文本的消息框。
        /// </summary>
        /// <param name="text">要在消息框中显示的文本。</param>
        /// <param name="caption">要在消息框的标题栏中显示的文本。</param>
        /// <returns>System.Windows.Forms.DialogResult 值之一。</returns>
        /// <remarks></remarks>
        public static DialogResult Show(string text, string caption)
        {
            return DevExpress.XtraEditors.XtraMessageBox.Show(text, caption);
        }

        /// <summary>
        /// 显示具有指定文本的消息框。
        /// </summary>
        /// <param name="text">要在消息框中显示的文本。</param>
        /// <param name="caption">要在消息框的标题栏中显示的文本。</param>
        /// <param name="buttons">System.Windows.Forms.MessageBoxButtons 值之一，可指定在消息框中显示哪些按钮。</param>
        /// <returns>System.Windows.Forms.DialogResult 值之一。</returns>
        /// <remarks></remarks>
        public static DialogResult Show(string text, string caption, MessageBoxButtons buttons)
        {
            return DevExpress.XtraEditors.XtraMessageBox.Show(text, caption, buttons);
        }

        /// <summary>
        /// 显示具有指定文本的消息框。
        /// </summary>
        /// <param name="text">要在消息框中显示的文本。</param>
        /// <param name="caption">要在消息框的标题栏中显示的文本。</param>
        /// <param name="buttons">System.Windows.Forms.MessageBoxButtons 值之一，可指定在消息框中显示哪些按钮。</param>
        /// <param name="icon">System.Windows.Forms.MessageBoxIcon 值之一，它指定在消息框中显示哪个图标。</param>
        /// <returns>System.Windows.Forms.DialogResult 值之一。</returns>
        /// <remarks></remarks>
        public static DialogResult Show(string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon)
        {
            return DevExpress.XtraEditors.XtraMessageBox.Show(text, caption, buttons, icon);
        }

        /// <summary>
        /// 显示具有指定文本的消息框。
        /// </summary>
        /// <param name="text">要在消息框中显示的文本。</param>
        /// <param name="caption">要在消息框的标题栏中显示的文本。</param>
        /// <param name="buttons">System.Windows.Forms.MessageBoxButtons 值之一，可指定在消息框中显示哪些按钮。</param>
        /// <param name="icon">System.Windows.Forms.MessageBoxIcon 值之一，它指定在消息框中显示哪个图标。</param>
        /// <param name="defaultButton">System.Windows.Forms.MessageBoxDefaultButton 值之一，可指定消息框中的默认按钮。</param>
        /// <returns>System.Windows.Forms.DialogResult 值之一。</returns>
        /// <remarks></remarks>
        public static DialogResult Show(string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton)
        {
            return DevExpress.XtraEditors.XtraMessageBox.Show(text, caption, buttons, icon, defaultButton);
        }

        // Public Shared Function Show(text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons, icon As System.Windows.Forms.MessageBoxIcon, defaultButton As System.Windows.Forms.MessageBoxDefaultButton, options As System.Windows.Forms.MessageBoxOptions) As System.Windows.Forms.DialogResult
        // Return DevExpress.XtraEditors.XtraMessageBox.Show(text, caption, buttons, icon, defaultButton, options)
        // End Function

        // Public Shared Function Show(text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons, icon As System.Windows.Forms.MessageBoxIcon, defaultButton As System.Windows.Forms.MessageBoxDefaultButton, options As System.Windows.Forms.MessageBoxOptions, displayHelpButton As Boolean) As System.Windows.Forms.DialogResult
        // Return DevExpress.XtraEditors.XtraMessageBox.Show(text, caption, buttons,icon,defaultButton,defaultButton,
        // End Function

        // Public Shared Function Show(text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons, icon As System.Windows.Forms.MessageBoxIcon, defaultButton As System.Windows.Forms.MessageBoxDefaultButton, options As System.Windows.Forms.MessageBoxOptions, helpFilePath As String) As System.Windows.Forms.DialogResult

        // End Function

        // Public Shared Function Show(text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons, icon As System.Windows.Forms.MessageBoxIcon, defaultButton As System.Windows.Forms.MessageBoxDefaultButton, options As System.Windows.Forms.MessageBoxOptions, helpFilePath As String, keyword As String) As System.Windows.Forms.DialogResult

        // End Function

        // Public Shared Function Show(text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons, icon As System.Windows.Forms.MessageBoxIcon, defaultButton As System.Windows.Forms.MessageBoxDefaultButton, options As System.Windows.Forms.MessageBoxOptions, helpFilePath As String, navigator As System.Windows.Forms.HelpNavigator) As System.Windows.Forms.DialogResult

        // End Function

        // Public Shared Function Show(text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons, icon As System.Windows.Forms.MessageBoxIcon, defaultButton As System.Windows.Forms.MessageBoxDefaultButton, options As System.Windows.Forms.MessageBoxOptions, helpFilePath As String, navigator As System.Windows.Forms.HelpNavigator, param As Object) As System.Windows.Forms.DialogResult

        // End Function

        /// <summary>
        /// 在指定对象的前面显示具有指定文本的消息框。
        /// </summary>
        /// <param name="owner">将拥有模式对话框的 System.Windows.Forms.IWin32Window 的一个实现。</param>
        /// <param name="text"></param>
        /// <returns></returns>
        /// <remarks></remarks>
        public static DialogResult Show(IWin32Window owner, string text)
        {
            return DevExpress.XtraEditors.XtraMessageBox.Show(owner, text);
        }

        /// <summary>
        /// 在指定对象的前面显示具有指定文本的消息框。
        /// </summary>
        /// <param name="owner">将拥有模式对话框的 System.Windows.Forms.IWin32Window 的一个实现。</param>
        /// <param name="text">要在消息框中显示的文本。</param>
        /// <param name="caption">要在消息框的标题栏中显示的文本。</param>
        /// <returns></returns>
        /// <remarks></remarks>
        public static DialogResult Show(IWin32Window owner, string text, string caption)
        {
            return DevExpress.XtraEditors.XtraMessageBox.Show(owner, text, caption);
        }

        /// <summary>
        /// 在指定对象的前面显示具有指定文本的消息框。
        /// </summary>
        /// <param name="owner">将拥有模式对话框的 System.Windows.Forms.IWin32Window 的一个实现。</param>
        /// <param name="text">要在消息框中显示的文本。</param>
        /// <param name="caption">要在消息框的标题栏中显示的文本。</param>
        /// <param name="buttons">System.Windows.Forms.MessageBoxButtons 值之一，可指定在消息框中显示哪些按钮。</param>
        /// <returns>System.Windows.Forms.DialogResult 值之一。</returns>
        /// <remarks></remarks>
        public static DialogResult Show(IWin32Window owner, string text, string caption, MessageBoxButtons buttons)
        {
            return DevExpress.XtraEditors.XtraMessageBox.Show(owner, text, caption, buttons);
        }

        /// <summary>
        /// 在指定对象的前面显示具有指定文本的消息框。
        /// </summary>
        /// <param name="owner">将拥有模式对话框的 System.Windows.Forms.IWin32Window 的一个实现。</param>
        /// <param name="text">要在消息框中显示的文本。</param>
        /// <param name="caption">要在消息框的标题栏中显示的文本。</param>
        /// <param name="buttons">System.Windows.Forms.MessageBoxButtons 值之一，可指定在消息框中显示哪些按钮。</param>
        /// <param name="icon">System.Windows.Forms.MessageBoxIcon 值之一，它指定在消息框中显示哪个图标。</param>
        /// <returns>System.Windows.Forms.DialogResult 值之一。</returns>
        /// <remarks></remarks>
        public static DialogResult Show(IWin32Window owner, string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon)
        {
            return DevExpress.XtraEditors.XtraMessageBox.Show(owner, text, caption, buttons, icon);
        }

        /// <summary>
        /// 在指定对象的前面显示具有指定文本的消息框。
        /// </summary>
        /// <param name="owner">将拥有模式对话框的 System.Windows.Forms.IWin32Window 的一个实现。</param>
        /// <param name="text">要在消息框中显示的文本。</param>
        /// <param name="caption">要在消息框的标题栏中显示的文本。</param>
        /// <param name="buttons">System.Windows.Forms.MessageBoxButtons 值之一，可指定在消息框中显示哪些按钮。</param>
        /// <param name="icon">System.Windows.Forms.MessageBoxIcon 值之一，它指定在消息框中显示哪个图标。</param>
        /// <param name="defaultButton">System.Windows.Forms.MessageBoxDefaultButton 值之一，可指定消息框中的默认按钮。</param>
        /// <returns>System.Windows.Forms.DialogResult 值之一。</returns>
        /// <remarks></remarks>
        public static DialogResult Show(IWin32Window owner, string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton)
        {
            return DevExpress.XtraEditors.XtraMessageBox.Show(owner, text, caption, buttons, icon, defaultButton);
        }

        // Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons, icon As System.Windows.Forms.MessageBoxIcon, defaultButton As System.Windows.Forms.MessageBoxDefaultButton, options As System.Windows.Forms.MessageBoxOptions) As System.Windows.Forms.DialogResult

        // End Function

        // Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons, icon As System.Windows.Forms.MessageBoxIcon, defaultButton As System.Windows.Forms.MessageBoxDefaultButton, options As System.Windows.Forms.MessageBoxOptions, helpFilePath As String) As System.Windows.Forms.DialogResult

        // End Function

        // Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons, icon As System.Windows.Forms.MessageBoxIcon, defaultButton As System.Windows.Forms.MessageBoxDefaultButton, options As System.Windows.Forms.MessageBoxOptions, helpFilePath As String, keyword As String) As System.Windows.Forms.DialogResult

        // End Function

        // Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons, icon As System.Windows.Forms.MessageBoxIcon, defaultButton As System.Windows.Forms.MessageBoxDefaultButton, options As System.Windows.Forms.MessageBoxOptions, helpFilePath As String, navigator As System.Windows.Forms.HelpNavigator) As System.Windows.Forms.DialogResult

        // End Function

        // Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons, icon As System.Windows.Forms.MessageBoxIcon, defaultButton As System.Windows.Forms.MessageBoxDefaultButton, options As System.Windows.Forms.MessageBoxOptions, helpFilePath As String, navigator As System.Windows.Forms.HelpNavigator, param As Object) As System.Windows.Forms.DialogResult

        // End Function
    }
}